//@author A0105735J
#include "CommandDisplay.h"

CommandDisplay::CommandDisplay(void){
	type = CommandTypeDisplay;
}

CommandDisplay::~CommandDisplay(void){}

void CommandDisplay::setStartDate(DateTime traget){
	startDate.setYear(traget.getYear());
	startDate.setMonth(traget.getMonth());
	startDate.setDay(traget.getDay());
}

void CommandDisplay::setEndDate(DateTime traget){
	endDate.setYear(traget.getYear());
	endDate.setMonth(traget.getMonth());
	endDate.setDay(traget.getDay());
}

Feedback CommandDisplay::execute(Receiver* receiver){
	Logger::instance()->LogMessage("trying to display events");	
	return receiver->displayCommand(startDate, endDate);
}
